'''
@-*- coding: utf-8 -*-
@ python:python 3.9
@ 创建人员:allen
@ 创建时间:2024/8/19
'''
import random
import matplotlib.pyplot as plt


a = [random.randint(20,35) for _ in range(120)]


plt.figure(figsize=(10,10))

y = a
x = range(120)



_x = ["hello,{}".format(i) for i in x]
plt.xticks(x,_x)
plt.yticks(y)

plt.xlabel("Time")
plt.ylabel("Temp / ℃")
plt.title("TempShow")

plt.plot(x,y)
plt.show()